package org.sy.lab.Java7并发编程实战.一线程管理.三线程的中断;

public class Main {
	public static void main(String[] args) {
		Thread task = new PrimeGenerator();
		task.start();
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		task.interrupt();
		System.out.println(task.getState());
	}
}
